public class TrySB{
	public static void main(String args[])	{
		/*String s = "Microsoft";
		StringBuffer sb = new StringBuffer(s);
		sb.append('&').append("Sun").append('/').append(".NET").append('&').append("JAVA2");
		System.out.println(sb);//Microsoft&Sun/.NET&JAVA2

		char[] c = {' ','p','k'};
		sb.delete(13, sb.length()).insert(13,c).reverse();
		System.out.println(sb);
		System.out.println(sb.reverse());*/
		String s1 = new String("abc");
		String s2 = new String("123");
		System.out.println(Integer.toHexString(s1.hashCode()));
		System.out.println(Integer.toHexString(s2.hashCode()));
		s1 += s2;
		System.out.println(Integer.toHexString(s1.hashCode()));
		System.out.println(Integer.toHexString(s2.hashCode()));	
		StringBuffer sb = new StringBuffer(s1);
		System.out.println(Integer.toHexString(sb.hashCode()));
		sb = sb.append(s2);	
		System.out.println(Integer.toHexString(sb.hashCode()));
	}
}
